package com.estate.console.controller;


import com.estate.console.service.ConsoleService;
import com.estate.util.JsonResult;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/console")
public class ConsoleController {

    @Resource
    private ConsoleService consoleService;
    @GetMapping
    public JsonResult list(){
        return consoleService.find();
    }

}
